package com.ruoyi.gbase.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gbase.mapper.ProLogDetailMapper;
import com.ruoyi.gbase.domain.ProLogDetail;
import com.ruoyi.gbase.service.IProLogDetailService;
import com.ruoyi.common.core.text.Convert;

/**
 * 存储过程日志Service业务层处理
 * 
 * @author yys
 * @date 2020-12-09
 */
@Service
@DataSource(value = DataSourceType.GBASE)
public class ProLogDetailServiceImpl implements IProLogDetailService 
{
    @Autowired
    private ProLogDetailMapper proLogDetailMapper;

    /**
     * 查询存储过程日志
     * 
     * @param proName 存储过程日志ID
     * @return 存储过程日志
     */
    @Override
    public ProLogDetail selectProLogDetailById(String proName)
    {
        return proLogDetailMapper.selectProLogDetailById(proName);
    }

    /**
     * 查询存储过程日志列表
     * 
     * @param proLogDetail 存储过程日志
     * @return 存储过程日志
     */
    @Override
    public List<ProLogDetail> selectProLogDetailList(ProLogDetail proLogDetail)
    {
        return proLogDetailMapper.selectProLogDetailList(proLogDetail);
    }

    /**
     * 新增存储过程日志
     * 
     * @param proLogDetail 存储过程日志
     * @return 结果
     */
    @Override
    public int insertProLogDetail(ProLogDetail proLogDetail)
    {
        return proLogDetailMapper.insertProLogDetail(proLogDetail);
    }

    /**
     * 修改存储过程日志
     * 
     * @param proLogDetail 存储过程日志
     * @return 结果
     */
    @Override
    public int updateProLogDetail(ProLogDetail proLogDetail)
    {
        return proLogDetailMapper.updateProLogDetail(proLogDetail);
    }

    /**
     * 删除存储过程日志对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteProLogDetailByIds(String ids)
    {
        return proLogDetailMapper.deleteProLogDetailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除存储过程日志信息
     * 
     * @param proName 存储过程日志ID
     * @return 结果
     */
    @Override
    public int deleteProLogDetailById(String proName)
    {
        return proLogDetailMapper.deleteProLogDetailById(proName);
    }
}
